package com.zyy.observer.demo01;

/**
 * @Description: 具体观察者
 */
public class WeixinUser implements Observer {
    //用户名
    private String name;

    public WeixinUser(String name) {
        this.name = name;
    }

    @Override
    public void update(String message) {
        System.out.println(name + "-->" + message);
    }
}
